# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mapplauncherd
pkgver=4.2.13
pkgrel=0
pkgdesc="A daemon that helps to launch applications faster"
url="https://github.com/sailfishos/mapplauncherd"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="LGPL-2.1-only"
depends_dev="
	dbus-dev
	elogind-dev
	glib-dev
	libcap-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	doxygen
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/sailfishos/mapplauncherd/archive/$pkgver/mapplauncherd-$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DINSTALL_SYSTEMD_UNITS=OFF
	cmake --build build
	cmake --build build --target doc
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
f3f2dcaa0e852285537074333fdf175d2463d00671d15ca0c242121bc027b3b8ede3771c0c8d80c8bc0d75e9cea0495d54448ca86e24c0f0c2c3cde6e1569a97  mapplauncherd-4.2.13.tar.gz
"
